<?php
use App\Utils;
?>

@extends('layouts.master3')

@section('content')


    <link href="http://www.qlcoder.com//css/base.css" rel="stylesheet">
    <link href="http://www.qlcoder.com//css/people.css" rel="stylesheet">
    <link href="/css/discuss.css" rel="stylesheet">
    <div class="contain">
        <div class="qa-body-wrapper">
            <div class="qa-main-shadow">

                <div class="qa-main-wrapper">
                    <div class="fr">
                        <!-- nav-main E-->
                        <div class="qa-sidepanel" style="padding:0 10px;">
                            <div class="qa-sidebar well">
                                @include('dis.bulletin')
                            </div>
                        </div>
                        <!-- qa-sidebar E-->
                    </div>
                    <div class="fl">
                        <div class="qa-module">
                            <div class="qa-module-title">
                                <span>{{ $tag->name }}</span>
                            </div>
                            <div class="qa-module-detail clear">
                                <p>{!! $tag->description !!}</p>
                            </div>
                        </div>
                        <!-- qa-module E -->


                        <div class="qa-main">
                            <div class="qa-nav-skill">
                                <span class="qa-nav-skill-item active">技术任务</span>
                                <!-- 技术任务 s-->
                                <div class="qa-task-list list-in-skill">
                                    @foreach ($tag->tasks as $task)
                                        @if ($task['visible'])
                                            <a target="_blank" class="qa-task-list-item" href="{!! '/task/'.Utils::id2url($task['id']) !!}">{{ $task['title'] }}
                                        @else
                                            <a target="_blank" class="qa-task-list-item lock">{{ $task['title'] }}
                                        @endif

                                        {{--<a target="_blank" class="qa-task-list-item lock " href="{!! '/task/'.Utils::id2url($task['id']) !!}">{{ $task['title'] }}--}}
                                        @if ($task['solved'])
                                                <i class="iconfont ">&#xe622;</i>
                                        @endif
                                            </a>
                                    @endforeach
                                </div>
                                <!-- 技术任务 e-->
                            </div>

                            <div class="qa-nav-skill">
                                <a class="qa-nav-skill-item active">外部资源</a>
                                <!-- 开源项目 s-->
                                <div class="open-source list-in-skill">
                                    <div class="open-source-item">
                                        <p class="open-source-item-content">
                                            {!! $tag->externallink !!}
                                        </p>
                                    </div>
                                </div>
                                <!-- 开源项目 e-->
                            </div>


                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
    <div style="height:60px;"></div>
@stop

